package com.ruicar.afs.cloud.afscase.risk.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseAntiFraudCallStep;
import lombok.Data;

import java.util.Date;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/08/05 20:52
 */
@Data
@TableName("case_tortoise_fraud_hand")
public class CaseTortoiseFraudHand extends BaseEntity {

    /**
     * Apply no
     */
    private String applyNo;

    /**
     * Operation date
     */
    private Date operateDate;

    /**
     * Notice date
     */
    private Date noticeDate;

    /**
     * Fraud result
     */
    private String fraudResult;

    /**
     * Fraud score
     */
    private String fraudScore;

    /**
     * Call step
     */
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseAntiFraudCallStep callStep;

    /**
     * Call step desc
     */
    @TableField(exist = false)
    private String callStepDesc;

}
